package cn.com.spic.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import com.yonyou.iuap.ucf.dao.mybatis.UcfMapperFactoryBean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/*
 *
 * <b>Description:启动器</b><br>
 * @author <a href="http://ny.yonyou.com" target="_blank">Administrator</a>
 * @version 1.0
 * @Note
 * <b>ProjectName:</b> demo-contract-bootstrap
 * <br><b>PackageName:</b> cn.com.spic.demo
 * <br><b>ClassName:</b> ContractApplication
 * <br><b>Date:</b> 2019年9月20日 下午4:28:34
 */
@ComponentScan(basePackages = {"cn.com.spic", "com.yonyou"})
@MapperScan(basePackages = "cn.com.spic", annotationClass = Repository.class, factoryBean = UcfMapperFactoryBean.class)
@EnableTransactionManagement
@SpringBootApplication
@EnableSwagger2
public class ContractApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(ContractApplication.class, args);
    }

}
